package com.dianping.cat.home.storage.entity;

import com.dianping.cat.home.storage.BaseEntity;
import com.dianping.cat.home.storage.IVisitor;







public class Storage
  extends BaseEntity<Storage>
{
  private String m_id;
  private String m_department;
  private String m_productline;
  private String m_title;
  
  public Storage() {}
  
/*  22 */   public Storage(String id) { this.m_id = id; }




/*  27 */   public void accept(IVisitor visitor) { visitor.visitStorage(this); }


  
  public boolean equals(Object obj) {
    if (obj instanceof Storage) {
/*  33 */       Storage _o = (Storage)obj;

/*  35 */       if (!equals(getId(), _o.getId())) {
        return false;
      }
      
/*  39 */       return true;
    }
    
/*  42 */     return false;
  }

  
/*  46 */   public String getDepartment() { return this.m_department; }



/*  50 */   public String getId() { return this.m_id; }



/*  54 */   public String getProductline() { return this.m_productline; }



/*  58 */   public String getTitle() { return this.m_title; }


  
  public int hashCode() {
/*  63 */     int hash = 0;

/*  65 */     return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }



  
  public void mergeAttributes(Storage other) {
/*  72 */     assertAttributeEquals(other, "storage", "id", this.m_id, other.getId());

/*  74 */     if (other.getDepartment() != null) {
/*  75 */       this.m_department = other.getDepartment();
    }
    
    if (other.getProductline() != null) {
/*  79 */       this.m_productline = other.getProductline();
    }
    
/*  82 */     if (other.getTitle() != null) {
/*  83 */       this.m_title = other.getTitle();
    }
  }
  
  public Storage setDepartment(String department) {
/*  88 */     this.m_department = department;
/*  89 */     return this;
  }
  
  public Storage setId(String id) {
/*  93 */     this.m_id = id;
/*  94 */     return this;
  }
  
  public Storage setProductline(String productline) {
/*  98 */     this.m_productline = productline;
/*  99 */     return this;
  }
  
  public Storage setTitle(String title) {
/* 103 */     this.m_title = title;
/* 104 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/storage/entity/Storage.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */